package com.education.user.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "wisdom-service")
@Service
public interface WisdomFeign {

    @RequestMapping(value = "/web/catalog/selectBuy",method = RequestMethod.GET)
    public Integer[] selectCatalogId(@RequestParam("userId") Integer userId);


    @RequestMapping(value = "/web/catalog/insUserBuy",method = RequestMethod.GET)
    void insUserBuy(@RequestParam("userId") Integer userId,@RequestParam("tId") Integer tId);


    @RequestMapping(value = "/jrSchool/fingById",method = RequestMethod.GET)
    String fingById(@RequestParam("id") Integer id);
}
